package com.rich.user.mapper;

import com.rich.common.entity.TbUser;
import org.apache.ibatis.annotations.Mapper;
/**
 *
 * @Author: zdy
 * @Date:  下午 8:38
 **/
@Mapper
public interface UserMapper {
    /**
     * 查询单条
     * @Author: zdy
     * @Date:  下午 2:45
     * @param uid
     * @return com.rich.common.entity.TbUser
     **/
    TbUser findById(Long uid);

    /**
     * 以姓名查询单条
     * @param phone
     * @return
     */
    TbUser findByUserName(String phone);
}